using System;
using Rdl;

namespace GTame.ReportParser
{

    public class PageHeaderFooterType
    {

        private string _Height;
        private Nullable<bool> _PrintOnFirstPage;
        private Nullable<bool> _PrintOnLastPage;
        private ReportItemsTypeComposite _ReportItems;
        private StyleType _Style;

        public string Height
        {
            get
            {
                return _Height;
            }
            set
            {
                _Height = value;
            }
        }

        public Nullable<bool> PrintOnFirstPage
        {
            get
            {
                return _PrintOnFirstPage;
            }
            set
            {
                _PrintOnFirstPage = value;
            }
        }

        public Nullable<bool> PrintOnLastPage
        {
            get
            {
                return _PrintOnLastPage;
            }
            set
            {
                _PrintOnLastPage = value;
            }
        }

        public ReportItemsTypeComposite ReportItems
        {
            get
            {
                if (_ReportItems == null)
                    _ReportItems = new ReportItemsTypeComposite();
                return _ReportItems;
            }
            set
            {
                _ReportItems = value;
            }
        }

        public StyleType Style
        {
            get
            {
                if (_Style == null)
                    _Style = new StyleType();
                return _Style;
            }
            set
            {
                _Style = value;
            }
        }

        public PageHeaderFooterType()
        {
            _PrintOnFirstPage = new Nullable<bool>[]();
            _PrintOnLastPage = new Nullable<bool>[]();
        }

        public PageHeaderFooterType Write()
        {
            // trial
            return null;
        }

    } // class PageHeaderFooterType

}

